package com.ivanceras.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface SimulationServiceAsync {
	void createQuestionnaire(String title, String description, AsyncCallback<Questionnaire> callback);
	void getQuestions(long questionnaireKey, AsyncCallback<List<Question>> callback);
	void getQuestionnaires(AsyncCallback<ArrayList<com.ivanceras.client.Questionnaire>> callback);
	//void addNewQuestion(long questionnaireKey, String questionText, ArrayList<String> choices, AsyncCallback<Boolean> callback);
	void addNewQuestion(long questionnaireKey, String questionText,	ArrayList<Choice> qcList, AsyncCallback<com.ivanceras.client.Question> callback);
	void saveQuestionnaire(long questionnaireKey, String title,String description, AsyncCallback<Questionnaire> asyncCallback);
	void saveQuestion(com.ivanceras.client.Question question, AsyncCallback<com.ivanceras.client.Question> asyncCallback);
}
